<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<script src="./vue.js"></script>

<body>
  <div id="app">
    <button @click="showInfo">我是按钮</button>
    <p>{{msg}}</p>
  </div>
  <script>
    const vm = new Vue({
      el: "#app",
      data: {
        msg: ""
      },
      methods: {
        showInfo() {
          this.msg = "SHOW TIME!!"
        }
      }
    });
  </script>
</body>

</html>